package main

import (
	"fmt"
)

func main() {
	defer a()
	b()
	defer func() {
		msg := recover()
		fmt.Println(msg)
	}()
	panic("PANIC")

	// x,y:= isEven(10)
	// fmt.Println(x)
	// fmt.Println(y)
}

func a() {
	fmt.Println("执行第函数a")
}

func b() {
	fmt.Println("执行第函数b")
}

//excrise
func isEven(data int) (bool, int) {
	var flag bool
	val := data / 2
	if data%2 == 0 {
		flag = true
	} else {
		flag = false
	}
	return flag, val

}
